class Help < Gtk::Dialog

	def initialize(it)
		super(_('Help'), $main, Gtk::Dialog::MODAL | Gtk::Dialog::DESTROY_WITH_PARENT, [Gtk::Stock::OK, Gtk::Dialog::RESPONSE_ACCEPT])

		table = Gtk::Table.new(2, 2)
		table.column_spacings = 24
		table.row_spacings = 6
		table.border_width = 24

		r = 0
		it.each do |item|
			k = Gtk::Label.new.set_markup("<b>#{item[0]}</b>").set_xalign(0)
			v = Gtk::Label.new(item[1]).set_xalign(0)
			table.attach(k, 0, 1, r, r+1)
			table.attach(v, 1, 2, r, r+1)
			r += 1
		end

		self.vbox << table
		self.vbox.show_all
	end

end
